delete from DocTypePermission where DocType=@docType90;
delete from RouteItem where DocType=@docType90;
delete from RoutePoint where DocType=@docType90;
delete from DocType where DocTypeId=@docType90;
delete from FolderPermission where Folder=@docTypeFolder90;
delete from Folder where FolderId=@docTypeFolder90;
